package com.smalleswidht;

import java.io.File;

public class DimensUtils {
    /**
     * 设计稿尺寸(将自己设计师的设计稿的宽度填入)
     */
    public static final int DESIGN_WIDTH = 375;
    /**
     * 设计稿的高度  （将自己设计师的设计稿的高度填入）
     */
    public static final int DESIGN_HEIGHT = 667;
    /**
     * 最大值
     */
    public static final int MAX_SIZE = 720;
    /**
     * 输出文件夹路径
     */
    private static final String OUT_DIR_PATH = "C:\\Users\\Fanly\\Desktop\\sw";
    private static final int START_SW = 300;
    private static final int END_SW = 500;
    private static final int SW_STEP = 10;

    public static void main(String[] args) {
        int smallest = Math.min(DESIGN_HEIGHT,DESIGN_WIDTH);
        MakeUtils.makeDefalut(OUT_DIR_PATH);
        for (int start = START_SW;start <= END_SW;start += SW_STEP) {
            File file = new File(OUT_DIR_PATH);
            MakeUtils.makeAll(smallest, start, file.getAbsolutePath());
        }

    }
}
